﻿namespace Qy.Scenario;
public class RegxPatterns
{
    /// <summary>
    /// 邮箱
    /// </summary>
    public const string Email = @"^([\w-\.]+)@([\w-\.]+)(\.[a-zA-Z0-9]+)$";
    /// <summary>
    /// 手机号码
    /// </summary>
    public const string Mobile = @"^(13|14|15|16|17|18|19)[0-9]{9}$";
    /// <summary>
    /// 数字
    /// </summary>
    public const string Number = @"^[0-9]\d*$";
    /// <summary>
    /// 英文下划线或数字
    /// </summary>
    public const string EnOrNumber = @"^[A-Za-z0-9_]+$";
    /// <summary>
    /// 中文
    /// </summary>
    public const string Chs = "^[\u4E00-\u9FA5]+$";
    /// <summary>
    /// 身份证号码
    /// </summary>
    public const string CardId = @"^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$";

    /// <summary>
    /// 密码
    /// </summary>
    public const string Pass = @"^[0-9a-zA-Z_ !""#$%&'()*+,-./:;<=>?@\[\]\^_`{|}~]{6,20}$";
}
